package util;

import java.lang.reflect.Field;

public class ReflectionUtils {

	public static Object getFieldValue(Object bean, String fieldName) throws IllegalArgumentException, 
		IllegalAccessException, SecurityException, NoSuchFieldException{
		Field field = bean.getClass().getDeclaredField(fieldName);
		if(!field.isAccessible()){
			field.setAccessible(true);
		}
		return field.get(bean);
	}
	
	
}
